package cn.iocoder.yudao.module.system.controller.admin.chaoshun.vo.sp;

import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
import cn.iocoder.yudao.module.system.enums.DictTypeConstants;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 用户 Excel 导入 VO（本系统导出的数据）
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = false) // 设置 chain = false，避免物流导入有问题
public class SpImportExcelOldVO {

    @ExcelProperty("运单号")
    private String ydh;

    @ExcelProperty("收货人")
    private String shr2;

    @ExcelProperty("货名")
    private String spmc;

    @ExcelProperty("件数")
    private String js;

    @ExcelProperty("运费")
    private String yf;

    @ExcelProperty(value = "方式", converter = DictConvert.class)
    @DictFormat(DictTypeConstants.COMMON_YFZFFS)
    private String yffs;

    @ExcelProperty("货款")
    private String hk;

    @ExcelProperty(value = "方式", converter = DictConvert.class)
    @DictFormat(DictTypeConstants.COMMON_HKZFFS)
    private String hkfs;

    @ExcelProperty("发货电话")
    private String fhr;

    @ExcelProperty(value = "备注")
    private String remark;

    @ExcelProperty(value = "收货电话")
    private String shdh;

}
